#ifndef __BSP_KEY_H__
#define __BSP_KEY_H__

#include "stm32f4xx.h"

#define RCC_KEY_PORT (RCC_AHB1Periph_GPIOA)		/* GPIO端口时钟 */

#define KEY1_PORT	GPIOA
#define KEY1_PIN	GPIO_Pin_5

#define KEY2_PORT	GPIOA
#define KEY2_PIN	GPIO_Pin_4

typedef enum{
    KEY1,
    KEY_SUM,
}key_id_e;


extern struct Button button1;

void bsp_key_init(void);
uint8_t bsp_key_read_pin(uint8_t _id);





#endif /* __BSP_KEY_H__ */


